Skip to content

feat(web): hover the pace line on usage bars to see how much of the window has passed - #1052

Merged
badcuban merged 1 commit into
mainfrom
feat/provider-weekly-pace-hover
Nov 23, 2026
Merged

badcuban merged 1 commit into
mainfrom
feat/provider-weekly-pace-hover

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

The pace line on usage bars was a 2px tick you couldn't hover, so nothing said what it measured. The provider Usage tab in Settings didn't draw it at all.

Hovering the tick now shows a small tooltip, like "55% of the week has passed" with "Usage left of this line lasts until the reset" under it. It works on all three places the bars appear: the usage popup by the send button, the Usage page, and the Usage tab in Settings › Providers, which now draws the tick too.

  • The shared usage presentation (providerUsage.ts) carries a paceDetail next to elapsedPercent, naming the right span ("the week", "the day", "the 5-hour window"). The Usage page meters copy it through.
  • UsagePaceMark wraps the tick in a 12px-wide hover area with the tooltip. The bar's accessible name uses the same words.
  • The Settings Usage tab bar (ProviderUsageDashboard) draws the pace mark and no longer clips it.
  • The app guide's usage topic mentions the hover text and the Settings tab.

Checks: vp fmt, vp lint, vp run typecheck; unit tests for providerUsage and usageView; browser tests for UsageView and ContextWindowMeter (the latter now hovers the tick and checks the tooltip); server guide tests. Screenshots of the Settings bars with the tooltip open were checked in light and dark.

…indow has passed

The pace line on usage bars was a 2px tick you couldn't hover, and the
provider Usage tab in Settings didn't draw it at all.

The shared usage presentation now carries a `paceDetail` ("55% of the week
has passed") next to `elapsedPercent`. UsagePaceMark wraps the tick in a
wider hover area with a tooltip showing that text, and the bar's accessible
name uses the same words. The Settings Usage tab bars now draw the pace mark
too. The app guide's usage topic mentions both.
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Nov 23, 2026 3:41pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 21f9192 Nov 23, 2026
32 of 34 checks passed
@badcuban
badcuban deleted the feat/provider-weekly-pace-hover branch November 23, 2026 16:30

This branch was previously deployed

1 inactive deployment
Preview — b2d2027c Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant